package com.accenture.adf.newcodington.module16.sample;

/**
 * MyCalculatorSeeIt domain class
 */
public class MyCalculatorSeeIt {

	/**
	 * Method to accept two integers for calculating total
	 * 
	 * @param a
	 * @param b
	 * @return
	 * @throws ArithmeticException
	 */
	public int addNumbers(int a, int b) throws ArithmeticException {

		// Perform calculation
		int res = a + b;

		// Is the result entered numbers out of range?
		if (res > 99999999.0 || res < -99999999)
			throw new ArithmeticException("-Error-");
		return res;
	}

}
